<!DOCTYPE html>
<html>
    <head>
    <meta charset="utf-8">
    <title>demo10</title>
    <script src="./lib/vue-2.4.0.js"></script>
    </head>
    <body>
        <div id="app">
            <p v-for="(user,index) in list">下标---{{ index }}id
                ---{{ user.id }}名字---{{ user.name }}</p>
        </div>
        <script>
            new Vue({
                el: '#app',
                data: {
                    list: [
                        { id:1, name: 'lxh' },
                        { id:2, name: 'lxh1' },
                        { id:3, name: 'lxh2' },
                        { id:4, name: 'lxh3' },
                        { id:5, name: 'lxh4' }
                    ]
                },
                methods:{

                }
            })
        </script>
    </body>
</html>